package com.cn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController {
	
		@RequestMapping(value="/getModel")
		public ModelAndView getModel(String name) {
			
			ModelAndView mav=new ModelAndView();
			mav.addObject("name", "龚为明");
			mav.setViewName("forward:/index.jsp");
			return mav;
		}
}
